package com.project.order.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @program: seata-at
 * @description: 订单Mapper
 * @author: mml
 * @create: 2023/12/19
 */
@Mapper
public interface OrderMapper {

    @Insert("insert into order_tbl (user_id,commodity_code,count,money) values (#{account},#{productId},#{count},#{money})")
    int addOrder(@Param("account") String account,@Param("productId") String productId,@Param("count")  Integer count,@Param("money")  Double money);
}
